package com.qcby.service.Impl;

import com.qcby.dao.AdmStudentMapper;
import com.qcby.entity.AdmStudent;
import com.qcby.service.AdmStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 阿笙
 */
@Service("admStudentService")
public class AdmStudentServiceImpl implements AdmStudentService {
    @Autowired
    private AdmStudentMapper studentMapper;

    @Override
    public List<AdmStudent> findStudent() {
        return studentMapper.findStudent();
    }

    @Override
    public List<AdmStudent> stuFind(String student) {
        return studentMapper.stuFind(student);
    }


    @Override
    public int deleteStu(Integer id) {
        return studentMapper.deleteStu(id);
    }

    @Override
    public int insert(AdmStudent record) {
        return studentMapper.insert(record);
    }

    @Override
    public int updateByPrimaryKey(AdmStudent student) {
        return studentMapper.updateByPrimaryKey(student);
    }

    @Override
    public List<AdmStudent> selectById(Integer id) {
        return studentMapper.selectById(id);
    }

}
